negotiator.analysis
Class BidPointTime

java.lang.Object
  extended by negotiator.analysis.BidPoint
      extended by negotiator.analysis.BidPointTime

public class BidPointTime
extends BidPoint

Specialized version of a BidPoint for the case that there are two agents. In this case, the time of offering the bid can be recorded.

Author:
Alex Dirkzwager

Constructor Summary
BidPointTime(Bid bid, java.lang.Double utilityA, java.lang.Double utilityB, double time)
          Create a BidPointTime object, which is a tuple of a specific bid, the utility of this bid for both agents, and the time at which the bid was offered.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 double getTime()
          Returns the time at which the bid was offered.
 int hashCode()
           
 void setTime(double time)
          Sets the time at which the bid is offered.
 java.lang.String toString()
           
 
Methods inherited from class negotiator.analysis.BidPoint
getBid, getDistance, getUtility, getUtilityA, getUtilityB, isStrictlyDominatedBy
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BidPointTime

public BidPointTime(Bid bid,
                    java.lang.Double utilityA,
                    java.lang.Double utilityB,
                    double time)
Create a BidPointTime object, which is a tuple of a specific bid, the utility of this bid for both agents, and the time at which the bid was offered.

Parameters:
bid - of which the utilities are recorded.
utilityA - utility of the agent for agent A.
utilityB - utility of the agent for agent B.
time - at which the bid was offered.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class BidPoint
Returns:
string representation of the object..

hashCode

public int hashCode()
Overrides:
hashCode in class BidPoint
Returns:
hashcode of this object.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class BidPoint
Parameters:
obj - object to which this object is compared.
Returns:
true if this object is equal to the given object.

getTime

public double getTime()
Returns the time at which the bid was offered.

Returns:
time of offering.

setTime

public void setTime(double time)
Sets the time at which the bid is offered.

Parameters:
time - of offering.